<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="InvitationViewDlg" widgetVar="InvitationViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{message.ViewInvitationTitle}">
            <h:form id="InvitationViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{invitationController.selected != null}">
                        <h:outputText value="#{message.ViewInvitationLabel_invID}"/>
                        <h:outputText value="#{invitationController.selected.invID}" title="#{message.ViewInvitationTitle_invID}"/>
                        <h:outputText value="#{message.ViewInvitationLabel_eventID}"/>
                        <h:outputText value="#{invitationController.selected.eventID}" title="#{message.ViewInvitationTitle_eventID}"/>
                        <h:outputText value="#{message.ViewInvitationLabel_fromUser}"/>
                        <h:outputText value="#{invitationController.selected.fromUser}" title="#{message.ViewInvitationTitle_fromUser}"/>
                        <h:outputText value="#{message.ViewInvitationLabel_toUser}"/>
                        <h:outputText value="#{invitationController.selected.toUser}" title="#{message.ViewInvitationTitle_toUser}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{message.Close}" onclick="InvitationViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
